Returns the start and end index of the longest common substring, in reference to the first string passed.